package com.hafu.model;

// 教师类
public class Teacher {
    private String teacherId;
    private String name;
    private String gender;
    private Integer age;
    private String title;
    private String department;
    private String phone;

    // 构造方法
    public Teacher() {
    }

    public Teacher(String teacherId, String name, String gender, Integer age, String title, String department, String phone) {
        this.teacherId = teacherId;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.title = title;
        this.department = department;
        this.phone = phone;
    }

    // Getter 和 Setter 方法
    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "teacherId='" + teacherId + '\'' +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", title='" + title + '\'' +
                ", department='" + department + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
}